<?php 
	if(count($list)>0){
		foreach ($list as $row){ 
?>
<div id="subsidi2">
<br/>
<input type="text" value="Sisa <?php echo $row->nama_subsidi;?> sebesar <?php echo formatRupiah($row->sisa);?>" disabled name="besar_subsidi" class="form-control form-elba input-sm"/>
<input type="hidden" id="id_a_subsidi" value="<?php echo $row->id_a_subsidi;?>"/>
<br/>
<input type="hidden" id="sisa_subsidi" value="<?php echo $row->sisa;?>"/>
<input type="text" id="besar_subsidi" class="form-control form-elba input-sm" placeholder="Inputkan besar subsidi @ tholabah lalu tekan enter"/>
<br/>
</div>
<div id="rincian" style="display:none;">
	<div class="alert alert-success">
		<?php echo $row->nama_subsidi;?> sebesar <span class="t-merah" id="sub"></span> @tholabah, dengan sisa subsidi <span class="t-merah" id="sisa_sub"></span>
		 <button type="button" title="Atur ulang subsidi" class="close" id="pilihLagi">&times;</button>
	</div>
</div>
<?php
		}
	}else{
?>
<br/>
Silahkan pilih subsidi
<?php
	}
?>
<select id="id_m_kelas" style="display:none;" class="form-control form-elba input-sm" <?php if(count($list_k)<1){echo "disabled";}?>>
	<?php 
	if(count($list_k)>0){
	?>
		<option value="null">Pilih Kelas</option>
	<?php
		foreach ($list_k as $row_k){ 
	?>
		<option value="<?php echo $row_k->id_m_kelas; ?>"><?php echo $row_k->kelas;?></option>
	<?php		
		};
	}else{
	?>
		<option value="null">Tidak ada data kelas</option>
	<?php
	}
	?>
</select>
<br/>
<span id="list_tholabah_modal"></span>